﻿
using Abp.Mtrl;
using Castle.Core.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Abp.Mtrl
{
    [Abp.Modules.DependsOn(typeof(AbpKernelModule))]
    public class AbpMtrlModule :Abp.Modules.AbpModule 
    {
        public ILogger Logger { get; set; }

        //private readonly ITypeFinder _typeFinder;

        public AbpMtrlModule()
        {
            //_typeFinder = typeFinder;
            Logger = NullLogger.Instance;
        }


        public override void PreInitialize()
        {
            using (var db = new MtrlDbcontext())
            {
                db.Material.Any();
                db.Draft.Any();
            }
            base.PreInitialize();
        }


        public override void Initialize()
        {
            base.Initialize();
        }

    }
}
